<template>
  <div class="index">
    <div class="header">
      <h2>经费总览</h2>
      <h2>总计：5000.00</h2>
    </div>
    <div class="qicai">
      <div class="qicai-guanl">
        <h3>器材经费</h3>
        <h3>小计：2000</h3>
      </div>
      <div class="qicaocom">
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="xuhao" label="序号"></el-table-column>
          <el-table-column prop="qicaiId" label="器材编号"></el-table-column>
          <el-table-column prop="qicainame" label="器材名称"></el-table-column>
          <el-table-column prop="qicaitybe" label="规格型号"></el-table-column>
          <el-table-column prop="danwei" label="个"></el-table-column>
          <el-table-column prop="num" label="数量"></el-table-column>
          <el-table-column prop="danjia" label="单价"></el-table-column>
          <el-table-column prop="price" label="金额"></el-table-column>
        </el-table>
      </div>
    </div>

    <div class="otherpice">
      <div class="otherpice-guanl">
        <h3>器材经费</h3>
        <h3>小计：2000</h3>
      </div>
      <div class="otherpice-qicaocom">
        <el-table :data="tableData1" style="width: 100%">
          <el-table-column prop="xuhao" label="序号"></el-table-column>
          <el-table-column prop="com" label="内容"></el-table-column>
          <el-table-column prop="picer" label="金额"></el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      chaxid: 0,
      tableData: [
        {
          xuhao: "1",
          qicaiId: "456516",
          qicainame: "火花塞",
          qicaitybe: "85mm*26mm",
          danwei: "个",
          num: "20",
          danjia: "100:00",
          price: "200:00"
        }
      ],
      tableData1: [
        {
          xuhao: "1",
          com: "费用说明",
          picer: "200:00"
        }
      ]
    };
  },
  methods: {
    xuanr() {
      this.chaxid = this.$route.query.id;
    },
    handleClick(tab, event) {
      console.log(tab, event);
    }
  },
  mounted: function() {
    this.xuanr();
  }
};
</script>

<style scoped>
.header {
  display: flex;

  justify-content: space-between;
  padding: 30px;
  padding-left: 50px;
  padding-right: 50px;
}
.qicai-guanl,
.otherpice-guanl {
  display: flex;
  justify-content: space-between;

  border-bottom: 1px solid black;
}
.qicaocom,
.otherpice-qicaocom {
  margin-top: 30px;
}
.qicai,
.otherpice {
  margin-top: 30px;
  border: 1px solid black;
  margin-left: 50px;
  margin-right: 50px;
  border-radius: 10px;
}
</style>